home *** CD-ROM | disk | FTP | other *** search
- <base registry="Dialog\RadioButton">
- <body bgcolor="normal" text="#000000" translate>
- <basefont charset="object.text.font_charset">
- <div valign=middle>
-
- <include src="properties_include_actions.html">
- <include src="properties_include_elements.html">
-
- <script language="EasyScript">
-
- element_types = new Array;
- help_object = object;
-
- ///////////////////////////////////
- function GetFontList (variable_name)
- {
- string = "<select name=\"" + variable_name + "\" scrollable>";
- string += "<include vectorfonts>";
- string += "</select>";
- return string;
- }
- //////////////////////////
- function ChooseCharacter ()
- {
- c = showModalDialog ("choose_character.html", object.text.font_charset);
- if (c) object.items.getFrame().name = object.items.getFrame().name + toChar (c);
- window.reparse();
- }
- ////////////////////////
- function BuildRadioButton ()
- {
- object.build ();
- object.getParent().select (object);
- window.reparse();
- }
-
- </script>
-
- <table width="100%" cellspacing=4 cellpadding=0 bgcolor="light" borderstyle="raised">
- <tr><td>
- <img src="images/large_RadioButton.bitmap">
- <td>
- <font face="Arial" size=+2 color="#000000">Radio Button</font>
- <spacer>
- <input type="text" size=16 name="object.name" onBlur="interface.reparseDialogs()">
- <td width=exact><img checkbutton src="images/large_dialog_help.bitmap" name="object.flags.help" title="Option help" onClick="window.reparse()">
- </table>
-
- <spacer height=4><!--//////////// Appearance ////////////////////-->
-
- <table width="100%" cellspacing=8 cellpadding=0 bgcolor="light" borderstyle="raised"><tr><td>
-
- <table>
- <tr><td>On image
- <td><img button src='images/small_open.bitmap' onMouseUp="LoadImage('on_image')" title='Choose an image'>
- <img button src='images/small_flash.bitmap' onMouseUp="NewImage('on_image')" title='Create a new image'>
- <img button src='images/small_paste.bitmap' onMouseUp="PasteImage('on_image')" title='Paste an image'>
- <if value="!object.getProperty('on_image')"> <i>Default image</i>
- <else>
- <img button src='images/small_copy.bitmap' onMouseUp="CopyImage('on_image')" title='Copy the image'>
- <img button src='images/small_dialog_window.bitmap' onMouseUp='object.on_image.open()' title='Open loading movie'>
- <img button src='images/small_delete.bitmap' onMouseUp="DeleteImage('on_image')" title='Remove image'>
- <a OnDblClick='object.on_image.open()'>
- <include value="object.on_image.getName().inQuotes()">
- </a>
- </if>
-
- <tr><td>Off image
- <td><img button src='images/small_open.bitmap' onMouseUp="LoadImage('off_image')" title='Choose an image'>
- <img button src='images/small_flash.bitmap' onMouseUp="NewImage('off_image')" title='Create a new image'>
- <img button src='images/small_paste.bitmap' onMouseUp="PasteImage('off_image')" title='Paste an image'>
- <if value="!object.getProperty('off_image')"> <i>Default image</i>
- <else>
- <img button src='images/small_copy.bitmap' onMouseUp="CopyImage('off_image')" title='Copy the image'>
- <img button src='images/small_dialog_window.bitmap' onMouseUp='object.off_image.open()' title='Open loading movie'>
- <img button src='images/small_delete.bitmap' onMouseUp="DeleteImage('off_image')" title='Remove image'>
- <a OnDblClick='object.off_image.open()'>
- <include value="object.off_image.getName().inQuotes()">
- </a>
- </if>
- </table>
-
- <tr><td><spacer height=8>
- <tr><td>
-
- <table>
- <tr><td>HTML<td><input type='textarea' size=30,2 width=max name='object.text.text' charset="object.text.font_charset" onChange='object.build()'>
- <tr><td>Variable<td><input type="text" size=16 name="object.variable">
- <tr><td>Value<td><input type="text" size=16 name="object.value">
- </table>
-
- </table>
-
- <spacer height=8><!--/// States ///////////////////-->
-
- <include src="properties_actions_script.html">
- <tabcontrol name="RadioButton_state" bgcolor="light">
- <tabpage caption="Click on">
-
- <include src="properties_actions.html" object="object.click_on_actions">
-
- <p>
-
- <spacer>Click on sound<spacer width=10>
- <include src="properties_choose_sound.html">
- <include value="AddSoundProperty('click_on_sound')">
-
- <tabpage caption="Click off">
-
- <include src="properties_actions.html" object="object.click_off_actions">
-
- <p>
- <spacer>Click off sound<spacer width=10>
- <include value="AddSoundProperty('click_off_sound')">
-
- </tabcontrol>
-
- <spacer height=4><!--//////////// Font ////////////////////-->
-
- <table width="100%" cellspacing=8 cellpadding=0 bgcolor="light" borderstyle="raised"><tr><td>
- <table cellspacing=0 cellpadding=2><tr>
- <td><u>Font</u><spacer width=8>
-
- <td><include value="GetFontList('object.text.font_face')">
- <spacer width=8>
- <input type="text" name="object.text.font_height" size=4" onBlur="BuildRadioButton()">
- <img src="images/other_slider.bitmap" onclick="window.openSlider('object.text.font_height',8,200,1,'','BuildRadioButton()')">
-
- <tr><td>Language<td>
- <select name="object.text.font_charset" onChange="window.reparse(),BuildRadioButton()">
- <option>normal
- <option>symbol
- <option>arabic
- <option>baltic
- <option>chinese
- <option>easteuropean
- <option>westeuropean
- <option>greek
- <option>hebrew
- <option>japanese
- <option>johab
- <option>korean
- <option>russian
- <option>turkish
- <option>thai
- <option>vietnamese
- </select>
-
- <a button width=+6 height=+2 onMouseUp="ChooseCharacter()">Map</a>
-
- </table>
- </table>
-
- <spacer height=4><!--////////////////////////////////////-->
-
- <table width="100%" cellspacing=6 cellpadding=2 bgcolor="light" borderstyle="raised">
- <tr><td>
- <spacer>Export font height adjustment<spacer>
- <input type="text" size=4 name="object.text.export_adjust" onBlur="BuildRadioButton()">
- <a onclick="window.openSlider('object.text.export_adjust',-5,5,0.1,'','BuildRadioButton()')"><img src="images/other_slider.bitmap"></a>
- </table>
-
- <spacer height=4><!--/// Position ///////////////////-->
-
- <table width="100%" cellspacing=4 cellpadding=8 bgcolor="light" borderstyle="raised">
- <tr><td>
-
- <include src="properties_layer_position.html">
-
- </table>
-
- <spacer height=4><!--////////////////////////////////////-->
-
- <table width="100%" cellspacing=3 cellpadding=8>
- <tr><td>
- <include value="explore('object')">
- </table>
-
- <script language="EasyScript">
-
- ////////////////////////////
- function LoadImage (property)
- {
- var name = fileOpenDialog ("Bitmap");
- if (name){
- var image = fileLoad (name);
- if (!image.isType("Bitmap")) debug ("Image must be a bitmap");
- else {
- object.setProperty (property, image);
- image.position.x = 0;
- image.position.y = 0;
- image.open();
- object.build();
- object.changed();
- window.reparse();}}
- }
- ///////////////////////////
- function NewImage (property)
- {
- var image = showModalDialog ('new_icon');
- if (image){
- object.setProperty (property, image);
- image.setDefaultName();
- image.position.x = 0;
- image.position.y = 0;
- image.open();
- image.saved();
- object.build();
- window.reparse();}
- }
- //////////////////////////////
- function DeleteImage (property)
- {
- object.saveUndo();
- object.setProperty (property, null);
- object.build();
- window.reparse();
- }
- ////////////////////////////
- function CopyImage (property)
- {
- object.copyProperty (property);
- }
- /////////////////////////////
- function PasteImage (property)
- {
- object.pasteProperty (property);
- object.build();
- window.reparse();
- }
-
- </script>
-